/-app
/-app/boot
/-app/layout
/-app/layout/loading
/-app/layout/managed
AssemblyDetails.html
MethodInfo.html
Type.html
page.css
page.html
/-app/layout/tree
FieldNode.html
MethodNode.html
NamespaceNode.html
PEHeadersNode.html
PropertyNode.html
ReferencesNode.html
TypeNode.html
UnmanagedImportsNode.html
UnmanagedResourceNode.html
UnmanagedResourcesNode.html
/-app/layout/unmanaged
app.css
commonPage.css
pe.css
pefile.html
/-app/loaded
/-app/loading
/-app/mscorlib
Application.ts
earlyinit.js
format.ts
functions.ts
ko.ts
lateinit.js
/-core
/-headers
/-imports
/-io
/-managed ...
/-managed/metadata
/-managed/metadata/enums
ClrDirectory.ts
ClrMetadata.ts
CodedIndexReader.ts
CodedIndexReaders.ts
MetadataStreams.ts
TableCompletionReader.ts
TableReader.ts
TableStream.ts
bits.ts
/-managed/tables ...
Assembly.ts
AssemblyOS.ts
AssemblyProcessor.ts
AssemblyRef.ts
AssemblyRefOS.ts
AssemblyRefProcessor.ts
ClassLayout.ts
Constant.ts
CustomAttribute.ts
DeclSecurity.ts
Event.ts
EventMap.ts
ExportedType.ts
Field.ts
FieldLayout.ts
FieldMarshal.ts
FieldRva.ts
File.ts
GenericParam.ts
GenericParamConstraint.ts
ImplMap.ts
InterfaceImpl.ts
ManfiestResource.ts
MemberRef.ts
MethodDef.ts
MethodImpl.ts
MethodSemantics.ts
MethodSpec.ts
Module.ts
ModuleRef.ts
NestedClass.ts
Param.ts
Property.ts
PropertyMap.ts
StandaloneSig.ts
TypeDef.ts
TypeRef.ts
TypeSpec.ts
AppDomain.ts
Assembly.ts
ConstructedGenericType.ts
EventInfo.ts
FieldInfo.ts
MethodInfo.ts
ParameterInfo.ts
PropertyInfo.ts
Type.ts
TypeReference.ts
/-typings
/-unmanaged
pe.html
pe.ts
1
module pe.managed.tables {
2
 
3
  /** ECMA-335 II.22.8 */
4
  export class ClassLayout {
5
    TableKind = 0x0F;
6
 
7
    packingSize: number = 0;
8
    classSize: number = 0;
9
    parent: number = 0;
10
 
11
    read(reader: metadata.TableReader) {
12
      this.packingSize = reader.readShort();
13
      this.classSize = reader.readInt();
14
      this.parent = reader.readTypeDefTableIndex();
15
    }
16
  
17
    complete(reader: metadata.TableCompletionReader) {
18
      var typeDef = <TypeDef>reader.lookupTable(metadata.TableKind.TypeDef, this.parent);
19
      if (typeDef)
20
        typeDef.def.layout = { packingSize: this.packingSize, classSize: this.classSize };
21
    }
22
 
23
  }
24
 
25
}